package User;

import IoCz.IoCz;
import IoCz.IoFind;
import IoCz.IoAdd;
import IoCz.IoDelete;
import IoCz.IoShow;
import IoCz.IoEx;

import java.util.Scanner;

public class AdiUser extends User{
    public int menu(){
        System.out.println("=====管理员菜单=====");
        System.out.println("请选择操作");
        System.out.println("1.查找图书");
        System.out.println("2.新增图书");
        System.out.println("3.删除图书");
        System.out.println("4.展示图书");
        System.out.println("0.退出系统");
        Scanner scanner = new Scanner(System.in);
        int tmp = scanner.nextInt();
        return tmp;
    }
    public AdiUser(String name){
        super(name);
        System.out.println("恭喜 "+this.name+" 登录");
        this.ios = new IoCz[]{
                new IoEx(),
                new IoFind(),
                new IoAdd(),
                new IoDelete(),
                new IoShow()
        };
    }
}
